<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body">
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs3 think-form-label">总投资金额</label>
            <label class="layui-col-xs9">
                <input name="invest_total"  value='{$vo.invest_total|default=""}' placeholder="请输入总投资金额" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs3 think-form-label">赠送类型</label>
            <label class="layui-col-xs9">
                <select class="layui-select" name="give_type">
                    {foreach ['1'=>'一次性','2'=>'每天'] as $k=>$v}
                    <!--{eq name='$vo.give_type' value='$k.""'}-->
                    <option selected value="{$k}">{$v}</option>
                    <!--{else}-->
                    <option value="{$k}">{$v}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs3 think-form-label">赠送抽奖次数</label>
            <label class="layui-col-xs9">
                <input name="draw_num"  value='{$vo.draw_num|default=""}' placeholder="请输入赠送抽奖次数" class="layui-input">
            </label>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
{block name='script'}
<script>
    window.form.render();
</script>
{/block}
